
package com.example.tests;

import org.testng.annotations.Test;

	public class GroupCreate extends BaseClass {
		@Test
		public void testAddGroup() throws Exception {
			app.getNavigationHelper().openMainPage();
			app.getNavigationHelper().goToGroupsPage();
			app.getGroupHelper().initGroupCreation();
			GroupData group = new GroupData();
			group.name = "friends";
			group.header = "header 1";
			group.footer = "footer 1";
			app.getGroupHelper().fillGroupForm(group);
			app.getGroupHelper().submitGroupCreation();
			app.getGroupHelper().returnToGroupsPage();
		}
		
		@Test
		public void testEmptyGroup() throws Exception {
			app.getNavigationHelper().openMainPage();
			app.getNavigationHelper().goToGroupsPage();
			app.getGroupHelper().initGroupCreation();
			app.getGroupHelper().fillGroupForm(new GroupData());
			app.getGroupHelper().submitGroupCreation();
			app.getGroupHelper().returnToGroupsPage();
		}
	}


